import Vue from "vue";
import VueRouter from "vue-router";
import discover from "@/components/discover.vue";
import friend from "@/components/friend.vue";
import my from "@/components/my.vue";
import playlist from "@/components/playlist.vue";
import toplist from "@/components/toplist.vue";

Vue.use(VueRouter);

const router = new VueRouter({
    routes:[
        {path:'/discover', 
        component:discover,
        children:[
            {path:"toplist",component:toplist},
            {path:"playlist",component:playlist}
        ]},
        {path:'/friend', component:friend},
        {path:'/my', component:my}

    ]
});
export default router